import { RouteRecordRaw } from 'vue-router'

/**
 * 不需要授权就可以访问的页面
 */
const routes: Array<RouteRecordRaw> = [
  {
    path: '/login',
    name: 'login',
    redirect: '/login',
    component: () => import(/* webpackChunkName: "layout" */ '@/layout/LoginReg.vue'),
    meta: {
      title: '柠聚开发平台管理中心'
    },
    children: [
      {
        path: '/login',
        name: 'login',
        meta: {
          title: '柠聚开发平台用户登录'
        },
        component: () => import(/* webpackChunkName: "login" */ '@/views/user/Login.vue')
      },
      {
        path: '/register',
        name: 'register',
        meta: {
          title: '柠聚开发平台用户注册'
        },
        component: () => import(/* webpackChunkName: "login" */ '@/views/user/Register.vue')
      },
      {
        path: '/forgot-password',
        name: 'ForgotPassword',
        meta: {
          title: '柠聚开发平台用户找回密码'
        },
        component: () => import(/* webpackChunkName: "login" */ '@/views/user/ForgotPassword.vue')
      }
    ]
  }
]

export default routes
